package cn.suimg.neo4j.graph;

import cn.suimg.neo4j.annotation.DynamicQuery;
import cn.suimg.neo4j.annotation.OriginalId;
import cn.suimg.neo4j.relationship.AttributeRelationship;
import lombok.Data;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;

@Data
@NodeEntity(label = "标签")
@DynamicQuery(relationship = AttributeRelationship.class,graph = SongGraph.class)
public class TagGraph implements NeoGraph {

    @Id
    @GeneratedValue
    private Long id;

    @OriginalId
    private Integer tagId;

    private String name;

    private Integer parentId;

}
